# Api中间件层, 所以关于Api的请求都必须经过此中间件
from django.utils.deprecation import MiddlewareMixin


from django.http import JsonResponse



# 第二层Api中间件
class Api(MiddlewareMixin):
    def process_request(self, request):
        pass
    def process_response(self, request, response):
        return response



